package pdd.beans;

import com.alibaba.fastjson.annotation.JSONField;

import java.io.Serializable;

/**
 * Created by gtx on 2018/6/18.
 *  规格列表对象
 * @author gtx
 * @since 0.0.1
 */
public class GoodsSpec implements Serializable{
    /**
     * 规格所属的叶子类目ID
     */
    @JSONField(name = "cat_id")
    private Long catId;
    /**
     * 商品规格对应的ID
     */
    @JSONField(name = "parent_spec_id")
    private Long parentSpecId;
    /**
     * 商品规格ID对应的规格名称
     */
    @JSONField(name = "parent_spec_name")
    private String parentSpecName;

    public Long getCatId() {
        return catId;
    }

    public void setCatId(Long catId) {
        this.catId = catId;
    }

    public Long getParentSpecId() {
        return parentSpecId;
    }

    public void setParentSpecId(Long parentSpecId) {
        this.parentSpecId = parentSpecId;
    }

    public String getParentSpecName() {
        return parentSpecName;
    }

    public void setParentSpecName(String parentSpecName) {
        this.parentSpecName = parentSpecName;
    }

    @Override
    public String toString() {
        return "GoodsSpec{" +
                "catId=" + catId +
                ", parentSpecId=" + parentSpecId +
                ", parentSpecName='" + parentSpecName + '\'' +
                '}';
    }
}
